<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>frexp</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 16/12/2004</div>
    <p>
      <b>frexp</b> -  dissect floating-point numbers into base 2 exponent and mantissa</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[f,e]=frexp(x)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x</b>
        </tt>: real vector or matrix</li>
      <li>
        <tt>
          <b>f</b>
        </tt>: array of real values, usually in the range 0.5 &lt;= abs(f) &lt; 1.</li>
      <li>
        <tt>
          <b>e</b>
        </tt>: array of integers that satisfy the equation: <tt>
          <b>x = f.*2.^e</b>
        </tt>
      </li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    This function corresponds to the ANSI C function frexp(). Any zeros in <tt>
        <b>x</b>
      </tt> produce
    <tt>
        <b>f=0</b>
      </tt> and <tt>
        <b>e=0</b>
      </tt>.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

[f,e]=frexp([1,%pi,-3,%eps])
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="log.htm">
        <tt>
          <b>log</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/hat.htm">
        <tt>
          <b>hat</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/ieee.htm">
        <tt>
          <b>ieee</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="log2.htm">
        <tt>
          <b>log2</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
